package com.blog.service;

import com.blog.pojo.User;

import java.util.List;

/**
 * Copyright (C), 2022
 * Author: 苏大大
 * Date: 2022-04-15 16:05
 * FileName: UserService
 * Description:
 */
public interface UserService {
    //用户登录
    User Login(String account ,String password);

    //查询所有用户信息
    List<User> queryAll();

    //注册
    int register(User user);

    //用户信息修改
    int update(User user);

    //修改用户头像
    int updateAvatar(User user);

    //根据用户id查询用户信息
    User queryById(Long uid);
}
